//
//  funcCells.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/3/6.
//

import SwiftUI

struct FuncCells:View{
    var body:some View{
        VStack{
            SingleFunc(iconName: "phone", textName: "绑定手机号")
            SingleFunc(iconName: "phone", textName: "绑定手机号")
            SingleFunc(iconName: "phone", textName: "绑定手机号")
            SingleFunc(iconName: "phone", textName: "绑定手机号")
        }
    }
}

struct SingleFunc: View{
    
    var iconName: String
    var textName: String
    
    var body: some View{
        HStack{
            Image(iconName)
                .squareImage(size: 24)
            Text(textName)
                .foregroundColor(Color("deepGray"))
                .bold()
            Spacer()
            Image(systemName: "chevron.right")
                .foregroundColor(Color("lightGray"))
                .font(.system(size: 16))
        }.padding(.bottom,5)
    }
}


struct funcCells_Previews: PreviewProvider {
    static var previews: some View {
        FuncCells()
    }
}
